#!/bin/bash -ex

src=$1
dst=$2

if [ $# -lt 2 ]; then
  echo 'please input: ./scp-syncfile.sh src dst'
  exit 1
fi

while true ;do
  scp -r -P 8080 $src femu@localhost:$dst
  sleep 1
done
